<div class='layui-row' style='margin-top: 20px;'>
    <div class='layui-col-sm8'>
        <div style='margin:0px 40px;line-height: 27px;'>
            <i class='layui-icon layui-icon-file-b'></i><span>{{ d.name }}</span>
        </div>
    </div>
    <div class='layui-col-sm4'>
        <div class='layui-btn-group'>
            <button class='layui-btn layui-btn-normal layui-btn-sm' onclick='editInfo({{ d.id }});'>编辑</button>
            <button class='layui-btn layui-btn-normal layui-btn-sm' onclick='sendEmail({{ d.id }});'>发送邮件</button>
            <button class='layui-btn layui-btn-normal layui-btn-sm' onclick='sendMessage({{ d.id }});'>发送短信</button>
            <button class='layui-btn layui-btn-normal layui-btn-sm' type='button' onclick='delInfo({{ d.id }});'>
                删除
            </button>
        </div>
    </div>
</div>
<div class='layui-row' style='margin-top: 20px;'>
    <div class='layui-col-sm12'>
        <table class='layui-table'>
            <tr>
                <td>归属客户</td>
                <td>尊称</td>
                <td>角色</td>
                <td>职务</td>
                <td>手机号</td>
                <td>负责人</td>
            </tr>
            <tr>
                <td>{{ d.customer_id_name }}</td>
                <td>{{ d.subname }}</td>
                <td>{{ d.role_name }}</td>
                <td>{{ d.post }}</td>
                <td>{{ d.mobile }}</td>
                <td>{{ d.owner_user_name }}</td>
            </tr>
        </table>
    </div>
</div>
<div class='layui-row' style='margin-top: 20px;'>
    <div class='layui-col-sm12'>
        <div class='layui-tab layui-tab-card'>
            <ul class='layui-tab-title'>
                <li class='layui-this'>跟进记录</li>
                <li>基础信息</li>
            </ul>
            <div class='layui-tab-content'>
                <div class='layui-tab-item layui-show'>
                    <div class='layui-btn-group' style='margin:5px 0px 20px 20px;'>
                        <button class='layui-btn layui-btn-normal layui-btn-sm' type='button'
                                onclick="showRecord(' {{ d.id }}','{{ d.name }}')";>新建跟进
                        </button>
                    </div>
                    <table class='layui-hide' id='contentTable' lay-filter='contentTable' lay-size='sm'
                           style='width: 100%'></table>
                </div>
                <div class='layui-tab-item'>
                    <div class='layui-card'>
                        <div class='layui-card-header'>基础信息</div>
                        <div class='layui-card-body'>
                            <table style='width: 100%;'>
                                <tr>
                                    <td>联系人姓名:{{ d.name }}</td>
                                    <td>尊称:{{ d.subname }}</td>
                                </tr>
                                <tr>
                                    <td>手机号:{{ d.mobile }}</td>
                                    <td>角色:{{ d.role_name }}</td>
                                </tr>
                                <tr>
                                    <td>部门职务:{{ d.post }}</td>
                                    <td>固定电话:{{ d.telephone }}</td>
                                </tr>

                                <tr>
                                    <td>生日:{{ d.birthday }}</td>
                                    <td>邮箱:{{ d.email }}</td>
                                </tr>
                                <tr>
                                    <td>备注信息:{{ d.remarks }}</td>
                                    <td></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>